import tornado.ioloop
import tornado.web
from urlhandler import UrlHandler

application = tornado.web.Application([
    (r"/url", UrlHandler),
    (r"/url/([0-9]+)", UrlHandler)
])
 
if __name__ == "__main__":
    application.listen(8888)
    tornado.ioloop.IOLoop.instance().start()
